package org.goat.caprabank.client;

import org.goat.caprabank.shared.CaprabankException;
import org.goat.caprabank.shared.entity.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("bankService")
public interface BankService extends RemoteService {

	public User login(String username, String password) throws CaprabankException;

	public User register(String firstName, String lastName, String email, String username, String password) throws CaprabankException;

	public void logout();

	public User getDetails() throws CaprabankException;

	public User transfer(long toAccount, long amount, String comment) throws CaprabankException;
}
